#include <iostream>
#include <stdlib.h>
#include "SelectServer.hpp"

int main(int args, char *argv[])
{
    if(args != 2)
    {
        std::cout << argv[0] << " prot" << std::endl;
        exit(0);
    }

    int port = stoi(argv[1]);
    SelectServer server(port);
    server.InitServer();
    server.Loop();
    return 0;
}